﻿using AutoMapper;
using PLC.Domain.Dto;
using PLC.Domain.Entity;

namespace PLC.Infrastructure.AutoMapper;

public class DeviceConfigConfig:Profile
{
    public DeviceConfigConfig()
    {
        CreateMap<DtoDeviceConfig, DeviceConfig>().ForMember(dest => dest.Id, source => source.MapFrom(p => p.id))
            .ReverseMap(); 
            //CreateMap<DeviceConfig, DtoDeviceConfig>()
            //.ForMember(dest => dest.id, source => source.MapFrom(p => p.Id)); 
    }
}